<?php
session_start();
header('Content-type: text/html;charset=UTF-8');

$url=strtolower($_SERVER['SCRIPT_NAME']);

if (stripos($url,"ajax.php")===false){

	include_once('safe.php');

	if(is_file($_SERVER['DOCUMENT_ROOT'].'/360safe/360webscan.php')){

		include_once($_SERVER['DOCUMENT_ROOT'].'/360safe/360webscan.php');

	}

}



$language='cn';

if (stripos(strtolower($_SERVER['PHP_SELF']),'admin')===false){

	if (isset($_COOKIE['ser_dingtai']) || $_COOKIE['ser_dingtai']!=''){

		$language=$_COOKIE['ser_dingtai'];

	}	

}

else {

	if (isset($_COOKIE['aser_dingtai']) || $_COOKIE['aser_dingtai']!=''){

		$language=$_COOKIE['aser_dingtai'];

	}

}


$mysql_host='localhost:3306';
//$mysql_host='localhost';

$mysql_username='root';

$mysql_password='hz-8899W';

$mysql_database='www';

$conn=mysql_connect($mysql_host,$mysql_username,$mysql_password) or die ('MySql连接发生错误：'.mysql_error());

mysql_select_db($mysql_database,$conn) or die ('数据库连接发生错误：'.mysql_error());

mysql_query("SET NAMES UTF8");


//mysql_query("SET CHARACTER SET UTF8");  

//mysql_query("SET CHARACTER_SET_RESULTS=UTF8");

?>